package ciyuan.Damage;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.DamageSource;

/**
 * @author 150149
 */
public class MyDamageSource {

    public static final DamageSource bleedDamage = new DamageSource("bleed").setScalesWithDifficulty();
    public static final DamageSource thirstyDamage = new DamageSource("thirsty").setScalesWithDifficulty();
    public static final DamageSource critalDamage = new DamageSource("critalDamage");
    public static final DamageSource normalDamage = new DamageSource("normalDamage");

    public static class sputterDamage extends DamageSource {

        private final PlayerEntity playerEntity;

        public sputterDamage(PlayerEntity playerEntity) {
            super("sputter");
            this.playerEntity = playerEntity;
        }
    }

    public static sputterDamage sputter(PlayerEntity playerEntity) {
        return new sputterDamage(playerEntity);
    }


}
